package com.store.service.hzl;

import com.store.entity.Brand;
import com.store.mapper.hzl.BrandMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * ClassName:BrandService
 * package:com.store.service.hzl
 * Description:
 *
 * @Date:2021/1/21 14:48
 * @Author: tank_黄志凌
 */
@Service
public class BrandService {

    @Autowired
    private BrandMapper brandMapper;

    public int queryBrandTotalCount() {
        return brandMapper.queryBrandTotalCount();
    }

    public int addBrand(Brand brand) {
        return brandMapper.addBrand(brand);
    }

    public Brand queryBrandById(int id) {
        return brandMapper.queryBrandById(id);
    }

    public int updateBrand(Brand brand) {
        return brandMapper.updateBrand(brand);
    }

    public int deleteBrand(int id) {
        return brandMapper.deleteBrand(id);
    }
}
